let dataX = ['AJ', 'LL', 'TB', 'LK', 'DY', 'ZX', 'XS', 'QB']; //名称
let dataY = [20, 50, 15, 35, 50, 30, 40, 50]; //数据
let zoomShow = false;
var TJGK_OPTION = {
    backgroundColor: 'rgba(0,0,0,0)',
    tooltip: {
        trigger: 'axis',
        axisPointer: {
            type: 'shadow',
        },
    },
    grid: {
        top: '18%',
        right: '5%',
        left: '5%',
        bottom: '15%',
    },
    xAxis: [{
        type: 'category',
        data: dataX,
        axisLine: {
            lineStyle: {
                color: 'rgba(66, 192, 255, .3)',
            },
        },
        axisLabel: {
            interval: 0,
            margin: 10,
            color: '#05D5FF',
            textStyle: {
                fontSize: 11,
            },
            // rotate: '45',
        },
        axisTick: { //刻度
            show: false,
        },
    }, ],
    yAxis: {
        show: false,
        axisLabel: {
            padding: [3, 0, 0, 0],
            formatter: '{value}',
            color: 'rgba(95, 187, 235, 1)',
            textStyle: {
                fontSize: 11,
            },
        },
        axisTick: {
            show: true,
        },
        axisLine: {
            lineStyle: {
                color: 'rgba(66, 192, 255, .3)',
            },
        },
        splitLine: {
            lineStyle: {
                color: 'rgba(255,255,255,0)',
            },
        },
    },
    // dataZoom: [ //滚动条
    //     {
    //         show: zoomShow,
    //         type: 'slider',
    //         realtime: true,
    //         startValue: 0,
    //         endValue: 14,
    //         xAxisIndex: [0],
    //         bottom: '10',
    //         left: '30',
    //         height: 10,
    //         borderColor: 'rgba(0,0,0,0)',
    //         textStyle: {
    //             color: '#05D5FF',
    //         },
    //     },
    // ],
    series: [{
        type: 'bar',
        data: dataY,
        barWidth: '6',
        itemStyle: {
            normal: {
                color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                        offset: 0,
                        color: '#29acff',
                    },
                    {
                        offset: 1,
                        color: '#4bdfff',
                    },
                ]),
                barBorderRadius: 6,
            },
        },
        label: {
            normal: {
                show: true,
                lineHeight: 10,
                formatter: '{c}',
                position: 'top',
                textStyle: {
                    color: '#fff',
                    fontSize: 10,
                },
            },
        },
    }, ],
};